/*
 * Auto.h
 *
 *  Created on: Mar 19, 2012
 *      Author: s147614
 */

#ifndef AUTO_H_
#define AUTO_H_

#include "conc/Thread.h"
#include "conc/Mutex.h"
#include "conc/Condition.h"
#include "Richting.h"
#include <iostream>

using namespace std;


class Auto : public Thread {

private:
	Condition* cRichting;
	Mutex* mRichting;
	Condition* cPasseerd;
	Richting richting;

public:
	Auto(Richting richting, char* type);
	void run();
	void setCRichting(Condition* cR) { cRichting = cR; }
	void setmRichting(Mutex* mR) { mRichting = mR; }
	void setCPasseerd(Condition* cP) { cPasseerd = cP; }

	Richting getRichting() { return richting; }
};


#endif /* AUTO_H_ */
